<?php

/**
 * UtilityComputingController
 * 
 * @package sgit_development
 * @author juanma
 * @copyright 2011
 * @version $Id$
 * @access public
 */
class UtilityComputingController extends Sgit_Controller_Action
{
    protected $_checkZona = FALSE;
    protected $_checkAcceso = FALSE;
    
    
    
    public function indexAction()
    {
        $this->_model->Datacenter=new Application_Model_Datacenter();

        $navigation = $this->view->navigation();

        $idZona=$this->_getParam('idZona');;



        if($idZona){
             $zonas[$idZona]=$this->_getNombreZona($idZona);
        }else{
             $zonas=$this->_getZonas();
        }

        foreach($zonas as $k => $v){
            $menu[$k]['title']=$v;
            $contenedor = $navigation->findById('utility-computing');
            $menu[$k]['menu']=$navigation->menu()->setUlClass('ulnomenos')->renderMenu($contenedor);
        }

        $this->view->menu=$menu;
    }
    
    
    
    
}


     